{% extends "base.html" %} {% block title %}Case Workspace — LegalEase AI{% endblock %} {% block content %}
Back to Office

{{ case.case_reference_no if case.case_reference_no else 'Case #' ~ case.id }}

{{ case.category }} Status: {{ case.status.replace('_',' ').title() }}
{% if filings %} View Filing Package {% endif %}
AI Case Analysis
Summary

{{ case.summary or 'No AI summary available.' }}

Client Description

{{ case.description }}

{% if case.legal_guidance %}
⚖️ AI Legal Guidance
{{ case.legal_guidance }}
{% endif %}
Client Communication
{% if messages %} {% for msg in messages %}
{{ msg.content }}
{{ msg.sender_role.title() }} · {{ msg.sent_at.strftime('%d %b, %H:%M') if msg.sent_at else '' }}
{% endfor %} {% else %}
No messages yet. Type below to contact the client.
{% endif %}
Messages here are visible to both you and the client on their dashboard.
Case Documents
{% if documents %} {% for doc in documents %}
{{ doc.filename }}
{{ doc.doc_type }} · {{ doc.uploader_role.title() }} · {% if doc.file_size_kb %}{{ doc.file_size_kb }} KB{% endif %}
{% endfor %} {% else %}
No documents uploaded yet.
{% endif %}
Documents marked "Client Copy" are visible to the client on their case page.
AI Petition Drafting
{% if petitions %} {% for p in petitions[:1] %}
Latest Draft — {{ p.petition_type }} (v{{ p.version }})
{% endfor %} {% endif %}
{% if petitions %}
File in Court
{% if filings %}
Already filed — {{ filings[0].filing_number }} in {{ filings[0].court_type }}, {{ filings[0].court_district }} {{ filings[0].status.title() }}
{% endif %}
{% if petitions %} {% endif %}
{% endif %}
Private Notes (not visible to client)
{% if notes %} {% for note in notes %}
{{ note.content }}
{{ note.created_at.strftime('%d %b %Y, %H:%M') if note.created_at else '' }}
{% endfor %} {% else %}
No notes yet.
{% endif %}
{% if filings %}
Court Filings
{% for f in filings %}
{{ f.filing_number }}
{{ f.court_type }}, {{ f.court_district }}
{{ f.filing_date.strftime('%d %b %Y') if f.filing_date else '' }} · {{ f.status.title() }}
{% endfor %}
{% endif %}
{% endblock %}